Skip to content

Conversation

@PaulWessel
Copy link
Member

As documented on the forum, grdsample still failed to set the proper read area for input grids. This time I hopefully paid more attention to details. The two regions (the wesn_i subset needed to be read and the desired new output region wesn_o) are now carefully compared to the input grid to ensure that we include all the nodes needed to do a full interpolation. The user's case passes for me, several other cases I checked (including 360-regions and smaller ones with shifts of longitudes) passes plus the regular test suite.

As documented on the forum, grdsample still failed to set the proper read area for input grids.  This time I hopefully paid more attention to details.  The two regions (the subset needed to be read and the desired new output region) are now carefully compared to the input grid to ensure that we inlcude all the nodes needed to do a full interpolation.  The users case passes for me, several cases I checked (including 360-regions and smaller ones with shifts of longitdues) passes plus the regular test suite.
@PaulWessel PaulWessel added bug Something isn't working backport 6.1 Backport this PR to 6.1 branch labels Jul 19, 2020
@PaulWessel PaulWessel requested review from joa-quim and seisman July 19, 2020 23:08
@PaulWessel PaulWessel self-assigned this Jul 19, 2020
@PaulWessel PaulWessel merged commit 2b0683c into master Jul 19, 2020
@PaulWessel PaulWessel deleted the grdsample-fix2 branch July 19, 2020 23:29
github-actions bot pushed a commit that referenced this pull request Jul 19, 2020
* Incomplete fix of grdsample required more work

As documented on the forum, grdsample still failed to set the proper read area for input grids.  This time I hopefully paid more attention to details.  The two regions (the subset needed to be read and the desired new output region) are now carefully compared to the input grid to ensure that we inlcude all the nodes needed to do a full interpolation.  The users case passes for me, several cases I checked (including 360-regions and smaller ones with shifts of longitdues) passes plus the regular test suite.

* Update grdsample.c
joa-quim pushed a commit that referenced this pull request Jul 19, 2020
* Incomplete fix of grdsample required more work

As documented on the forum, grdsample still failed to set the proper read area for input grids.  This time I hopefully paid more attention to details.  The two regions (the subset needed to be read and the desired new output region) are now carefully compared to the input grid to ensure that we inlcude all the nodes needed to do a full interpolation.  The users case passes for me, several cases I checked (including 360-regions and smaller ones with shifts of longitdues) passes plus the regular test suite.

* Update grdsample.c

Co-authored-by: Paul Wessel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 6.1 Backport this PR to 6.1 branch bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants